]> AND Private Git Repository - these_gilles.git/blob - DOCS/L'estimation du gradient d'une fonction de densité, avec des applications dans Motif Recognition_ Baidu bibliothèque_files/wenku.js
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
modif finale lnivs + keywords
[these_gilles.git] / DOCS / L'estimation du gradient d'une fonction de densité, avec des applications dans Motif Recognition_ Baidu bibliothèque_files / wenku.js
1 var ALog=ALog||{};void function(H){var h=document,w=window,B=Math,d=parseInt;var u=h.all&&w.attachEvent,a=0,x,l={};var o={},k={count:0,items:[]},f={},q=H.configs||{},i,g=(+new Date).toString(36)+B.random().toString(36).substr(2,5);H.errors=k;H.configs=q;H.times=o;H.sid=g;function m(I){o[I]=+new Date}H.mark=m;function r(){if(x){return}x={};"AdivBliCaDulEdlFddGspanHtableIbodyJtrKsectionLtdMolNpOarticlePdtQformRimgSh3TinputUasideViWbXthYemZfont".replace(/([A-Z])([a-z]+)/g,function(K,I,J){x[x[I]=J]=I})}function G(L,K,M,J){if(!L||L.nodeType!=1){return""}var I=(typeof L.getAttribute!="undefined"&&L.getAttribute&&L.getAttribute(K))||"";if("#"==I){I="[id]"}else{if("."==I){I="[class]"}}I.replace(/\[([\w-_]+)\]/,function(O,N){I=typeof L.getAttribute!="undefiend"&&L.getAttribute?L.getAttribute(N):""});J&&(J.target=L);return I||(M&&G(L.parentNode,K,1,J))||""}function c(L,I,O){O&&r();I=I||h.body;if(!L||L==I||/^body$/i.test(L.tagName)){return""}if(L.nodeType!=1||/html/i.test(L.tagName)){return L.tagName||""}var K=G(L,l.alias),N=1,M=L.previousSibling,J=L.nodeName.toLowerCase();while(M){N+=M.nodeName==L.nodeName;M=M.previousSibling}K=(O&&x[J]||J)+(N<2?"":N)+(K&&"("+K+")");return L.parentNode==I?K:c(L.parentNode,I,O)+(/^[A-Z]/.test(K)?"":"-")+K}function j(J,I){return c(J,I,1)}H.getXPath=j;"Group1Action1Extra1AliasParamText".replace(/([A-Z][a-z]+)(1|0)?/g,function(K,I,J){var L=I.toLowerCase();l[L]="alog-"+L;H["get"+I]=function(N,M){return G(N,l[L],J,M)}});function A(K,M){if(!K||!M){return}F("report",M);var N=new Image(1,1),I=[],J="img_"+(+new Date);for(var L in M){if(M[L]){I.push(L+"="+encodeURIComponent(M[L]))}}H[J]=N;N.onload=N.onerror=function(){H[J]=N=N.onload=N.onerror=null;delete H[J]};N.src=K+"?"+I.join("&")}H.report=A;function F(J,M){var L=f[J],I=0;if(!L){return}var K=L.length;while(K--){if(L[K](M,J)){I++}}return I}H.fire=F;function n(L,J,M,I){if(!L){return}try{I&&I.push([L,J,M]);if(L==H){f[J]=f[J]||[];f[J].unshift(M);return}if(L.addEventListener){L.addEventListener(J,M,false)}else{if(L.attachEvent){L.attachEvent("on"+J,M)}}}catch(K){}}H.on=n;function p(L,I,O){if(!L){return}try{if(L instanceof Array){for(var N;N=L.pop();){p.apply(this,N)}return}if(L==H){var M=f[I];if(!M){return}var K=M.length;while(K--){if(M[K]===O){M.splice(K,1)}}return}if(L.removeEventListener){L.removeEventListener(I,O,false)}else{L.detachEvent&&L.detachEvent("on"+I,O)}}catch(J){}}H.un=p;function E(I){r();return I.replace(/\(([^)]+)\)/g,"").replace(/[A-Z]/g,function(J){return"-"+x[J]}).replace(/^-/,"")}H.epath=E;function D(I,J){if(!J){return q[I]}q[I]=q[I]||[];if(J instanceof Array){q=q[I].concat(J)}else{q[I].push(J)}}H.config=D;function z(J,M){if(!J.getBoundingClientRect){return[0,0]}var L=J.getBoundingClientRect(),I=b(J);function K(O,N){return String(+B.min(B.max(O/N,0),1).toFixed(N<36?1:(N<351?2:3))).replace(/^0\./g,".")}return[K(M[0]-L.left,I[0]),K(M[1]-L.top,I[1])]}H.ep=z;function b(I){if(!I.getBoundingClientRect){return[I.offsetWidth,I.offsetWidth]}var J=I.getBoundingClientRect();return[d(J.right-J.left),d(J.bottom-J.top)]}function C(){var J=b(h.documentElement),I=b(h.body);return[B.max(J[0],I[0],w.innerWidth||0,h.documentElement.scrollWidth||0),B.max(J[1],I[1],w.innerHeight||0,h.documentElement.scrollHeight||0)]}H.ps=C;function t(){return[B.max(h.documentElement.scrollLeft||0,h.body.scrollLeft||0,(h.defaultView&&h.defaultView.pageXOffset)||0),B.max(h.documentElement.scrollTop||0,h.body.scrollTop||0,(h.defaultView&&h.defaultView.pageYOffset)||0),w.innerWidth||h.documentElement.clientWidth||h.body.clientWidth||0,w.innerHeight||h.documentElement.clientHeight||h.body.clientHeight||0]}H.vr=t;function v(J,I){l[J]=I}H.an=v;function s(){if(u&&(new Date-a<50)){return}if(i){return}i=true;m("ult");if(F("unload")){isSleep=new Date;while(new Date-isSleep<100){}}}function e(J){var I=J.target||J.srcElement;if(I.nodeType==1&&/^ajavascript:/i.test(I.tagName+I.href)){a=new Date}}if(u){n(h,"mouseup",e)}n(w,"beforeunload",s);n(w,"unload",s);function y(K,J,I){k.count++;if(k.items.length<=9){k.items.push([K,J,I,+new Date])}F("error",k)}H.error=y;n(w,"error",y)}(ALog);var Monkey=Monkey||{};void function(G){var e=window,B=document;var K,p,J="monkey",b=[["mousedown","d"],["focusout","o"],["blur","o",e],["focusin","i"],["focus","i",e],["scroll","s",e],["resize","e",e]],h,q,d=[],f,o,c,H,j,g,y,k,i,n,w,F,z=0,l={},a=e.ALog,D;function I(P){if(!P){return}var N,O={ts:M().toString(36)};for(N in l){O[N]=l[N]}for(N in P){O[N]=P[N]}s("report",O);a.report(K?K.postUrl:"",O)}function E(O,P){if(!O){return}var N={cmd:"action",ac:O,param:P};s("action",N);I(N)}G.push=E;function u(N,O){N&&(l[N]=O)}G.set=u;function x(O,P,N){a.on(a,J+"."+O,P,N)}G.on=x;function M(){return new Date-h}function L(N){while(N){if(/^(a|button)$/i.test(N.tagName)){return N}N=N.parentNode}}function m(){switch(p.refer){case 1:case true:return B.referrer;case 2:var N=B.referrer;if(!N){return}var O="";N.replace(/(^\w+:\/\/)?([^\/]+)/,function(Q,P){O=P});if(B.location.host==O){return B.referrer}return O}}function C(P,ac,aa){var ae=ac.target||ac.srcElement;switch(P){case"d":if(!ae){return}H++;var N={},R=L(ae),W=a.getAction(ae,N),Z="",U=a.getText(ae);if(R){if(/^a$/i.test(R.tagName)){if(p.click){Z=R.getAttribute("href",2);if(/^(javascript|#)/i.test(Z)){Z=""}}j++}else{g++}if(p.click){U=U||a.getText(R)||R.title||R.innerHTML.replace(/<[^>]*>|\s/g,"")}}else{if(/input/i.test(ae.tagName)&&/button|radio|checkbox|submit/i.test(ae.type)){R=ae;g++;U=U||ae.value}}if(/img/i.test(ae.tagName)){k++;U=U||ae.alt||ae.title||ae.src}if((!R&&!W)||!p.click){break}if(p.onlylink&&/input|button/i.test(ae.tagName)){break}y++;var V=aa?aa.path+"/"+D(ae,aa.doc):D(ae),S=a.getGroup(ae),O=a.getExtra(ae),Q=a.getParam(N.target),Y=a.ep(ae,[ac.clientX,ac.clientY]),af=ae.ownerDocument,T=af.body,ab=[0,0];if(ac.pageX||ac.pageY){ab=[ac.pageX,ac.pageY]}else{if(ac.clientX||ac.clientY){ab=[ac.clientX+(af&&af.scrollLeft||T&&T.scrollLeft||0)-(af&&af.clientLeft||T&&T.clientLeft||0),ac.clientY+(af&&af.scrollTop||T&&T.scrollTop||0)-(af&&af.clientTop||T&&T.clientTop||0)]}}var ad={xp:V,g:S,gx:O,ac:W,ep:Y,ci:y,pp:ab,ps:a.ps(),param:Q,u:String(Z||"none").substr(0,200),txt:String(U||"none").substr(0,30)};if(p.vr){ad.vr=a.vr()}s("click",ad);I(ad);break;case"o":n=M();w=1;break;case"i":F+=M()-n;n=M();w=0;break;case"s":case"e":var X=a.vr();z=Math.max(X[1]+X[3],z);break}if(p.iframe&&/[dio]/.test(P)){o=M();if(c){clearInterval(c)}else{A()}c=setInterval(function(){if(M()-o>2000){clearInterval(c);c=0}A()},1000)}}function A(U,R,Q,O,S,T){U=B.getElementsByTagName("iframe");for(Q=0;Q<U.length;Q++){R=U[Q];try{var N=String(R.src).replace(/^\w+:\/\/([^\/]+).*$|.*/,"$1");if((!N||N==B.location.hostname)&&!R.contentWindow[f]){R.contentWindow[f]=1;T=R.contentWindow.document;for(O=0;(S=b[O])&&O<5;O++){a.on(S[2]?R.contentWindow:T,S[0],(function(V,X,W){return function(Y){C(V,Y,{path:X,doc:W})}})(S[1],D(R),T),d)}}}catch(P){}}}function t(O){if(!window.ALog||h||e.frameElement){return}a=ALog;O=O||[];if(!(O instanceof Array)){O=[O]}var P,Q,N,R=[].concat(O);while(K=R.pop()){if(K.page=K.page||K.getPage()){break}}if(!K){return}if(K.page instanceof Array){K.mid=K.mid||K.page[1];K.page=K.page[0]}p=K.reports;a.on(a,"unload",r,d);a.on(a,"error",v,d);D=a.getXPath;H=j=g=y=k=n=w=F=0;h=(a.times&&a.times.ht)||new Date;q=a.sid||(+h).toString(36)+(+Math.random().toFixed(8).substr(2)).toString(36);f="_e_"+q;l={pid:K.pid||241,sid:q,hid:K.hid,mid:K.mid,page:K.page,ver:5,p:K.product,px:e.screen.width+"*"+e.screen.height,ref:m()};for(P in K){if(/^on(\w+)$/.test(P)){x(P.substr(2),K[P],d)}}s("start",G);n=M();if(B.body){N=a.vr();z=N[1]+N[3]}p.pv&&I({cmd:"open"});for(P=0;Q=b[P++];){a.on(Q[2]||B,Q[0],(function(S){return function(T){if(!h){return}C(S,T)}})(Q[1]),d);if(!p.staytime){break}}p.iframe&&A()}G.start=t;function r(){if(!h){return}s("close",G);if(w){F+=M()-n}if(p.staytime){var N={cmd:"close",tc:H,lc:j,bc:g,pc:k,pd:z,ft:(M()-F).toString(36),ec:i};I(N);h=0;a.un(d)}return p.staytime}G.stop=r;function s(O,N){a.fire(J+"."+O,N)}function v(O){i=O.count;if(p.error){p.error=0;var N=O.items[0];if(N){I({cmd:"error",et:(N[3]-h).toString(36),url:N[1],msg:N[0],line:N[2]})}}}if(a){if(a.configs&&a.configs[J]){t(a.configs[J])}}}(Monkey);Monkey.start([{getPage:function(){var a=document.location;if(a.hostname=="wenku.baidu.com"){if(/^\/view\/\w+.html$/.test(a.pathname)){return["wenku-view",77]}return{"/":["wenku-index",76],"/portal/subject/8_s0_g0_v0":["wenku-8_s0_g0_v0",391],"/portal/subject/9_s0_g0_v0":["wenku-9_s0_g0_v0",392],"/portal/subject/31_s0_g0_v0":["wenku-31_s0_g0_v0",393]}[a.pathname]}},postUrl:"http://nsclick.baidu.com/u.gif",product:112,hid:456,reports:{pv:1,click:1,staytime:1,refer:1}},{getPage:function(){var b=document.location;if(b.hostname=="wenku.baidu.com"){var a={"/album/new":"wenku-album-new","/course/index":"wenku-course-index","/edu/index":"wenku-edu-index","/ppt/index":"wenku-ppt-index","/pro/index":"wenku-pro-index","/form/index":"wenku-form-index","/topic":"wenku-topic","/org/index":"wenku-org-index","/room":"wenku-room"}[b.pathname];if(!a){b=String(b);b.replace(/^http:\/\/wenku.baidu.com\/list\/(\d+)$/,function(c,d){a="wenku-list-"+d});a||b.replace(/^http:\/\/wenku.baidu.com\/new\b/i,function(d,c){a="wenku-new"});a||b.replace(/^http:\/\/wenku.baidu.com\/album\/list\?cid=(\d+)$/i,function(c,d){a="wenku-album-list-"+d});a||b.replace(/^http:\/\/wenku.baidu.com\/album\/view\/(\w+)$/i,function(c,d){a="wenku-album-view-"+d});a||b.replace(/^http:\/\/wenku.baidu.com\/course\/view\/(\w+)$/i,function(c,d){a="wenku-course-view-"+d});a||b.replace(/^http:\/\/wenku.baidu.com\/course\/list\/(\w+)$/i,function(c,d){a="wenku-course-list-"+d});a||b.replace(/^http:\/\/wenku.baidu.com\/course\/study\/(\w+)$/i,function(c,d){a="wenku-course-study-"+d});a||b.replace(/^http:\/\/wenku.baidu.com(\/lec)?\/search/i,function(c){a="wenku-search"})}return a}},postUrl:"http://nsclick.baidu.com/u.gif",product:112,hid:456,reports:{pv:1,click:1,staytime:1,refer:1}}]);var Hunter=window.Hunter||{};Hunter.userConfig=[{hid:(function(){var url=document.location.href;if(url.match(/wenku\.baidu\.com\/portal\/browse\/examinfo/)){return 20688}})()},{hid:(function(){var href=document.location.href;var ret;var preg={"http://wenku.baidu.com/ebook/\\\w+\\\?pn=1":22636,"http://wenku.baidu.com/promotion/activity/":22637,"http://wenku.baidu.com/ebook/\\\w+.html":22640,"http://wenku.baidu.com/view/e8197c18581b6bd97e19ea00.html":22643};var r;for(var i in preg){r=new RegExp(i);if(r.test(href)){ret=preg[i]}}return ret})()}];void function(){window.Hunter=window.Hunter||{};var i="toString",q="getBoundingClientRect",r="activeElement",S="previousSibling",a="nodeName",n="innerWidth",B="innerHeight",y="documentElement",P={grid:7,pid:240,hid:(function(){if(Hunter.userConfig){for(var ao=0,ap=Hunter.userConfig.length;ao<ap;ao++){if(Hunter.userConfig[ao].hid){au=Hunter.userConfig[ao].hid}}}if(!au){function p(av){return String(av).replace(/\.html?(\?|$)/,"$1").replace(/\?.*/,"").toLowerCase()}var w=document.location,aq={},d={"wenku.baidu.com":{"\/vip\/index":"22635","\/pay\/index":"22638","\/vip\/privilege":"22639","\/trade\/joinvip":"22641","\/cart\/mycart":"22642"}},ar,at,au;d=d[w.hostname.toLowerCase()];if(!d){return}w.search.toLowerCase().replace(/([^?&#]+)=([^?&#]*)/g,function(aw,av,ax){aq[av]=ax});w=p(w.pathname);for(ar in d){at=w==p(ar);at&&/\?/.test(ar)&&ar.toLowerCase().replace(/([^?&#]+)=([^?&#]*)/g,function(aw,av,ax){if(aq[av]!=ax.replace(/[^\x00-\xff]/g,function(ay){return encodeURI(ay)}).toLowerCase()){at=0}});if(at){au=d[ar]}}}if(Hunter.ratio&&typeof(Hunter.ratio[au])!="undifined"){if(Math.random()>Hunter.ratio[au]){return}}return au})(),logPath:"http://nsclick.baidu.com/u.gif"},v={},aj,ag=[],ab=window,am=document,G=am.body,E=am[y],l=am.defaultView,M=Math.max,k=encodeURIComponent,al=100,j,N,H,t,I,u=ab.screen.width+"*"+ab.screen.height,R,C,x,h=110,z=2060,D=1000*60*30,m,f,s,o,r,c,ad=[["mousemove","m"],["mousedown","d"],["contextmenu","r"],["mouseup","u"],["click","c"],["dblclick","l"],["keydown","k"],["mousewheel","w"],["DOMMouseScroll","w",ab],["scroll","s",ab],["resize","e",ab],["beforeunload","z",ab],["unload","z",ab],["focusout","o"],["blur","o",ab],["focusin","i"],["focus","i",ab]],ac,g=/gecko/i.test(navigator.userAgent),W,U;function K(ap,w,p,d,ao){ap=am.getElementsByTagName(am.all?"object":"embed");for(w=0;d=ap[w++];){if(!d[c]){d[c]=1;for(p=0;(ao=ad[p])&&p<7;p++){V(d,ao[0],(function(aq){return function(ar){aa(aq,ar)}})(ao[1]))}}}}function X(aq,d,ap,ao,p,au,w){aq=document.getElementsByTagName("iframe");for(ap=0;ap<aq.length;ap++){w=aq[ap];try{var at=String(w.src).replace(/^\w+:\/\/([^\/]+).*$|.*/,"$1");if((!at||at==document.location.hostname)&&!w.contentWindow[c]){w.contentWindow[c]=1;au=w.contentWindow.document;for(ao=0;(p=ad[ao])&&ao<7;ao++){V(au,p[0],(function(av,ax,aw){return function(ay){if(g){if("d"==av){U=b(ay)}if("u"==av){U=0}}aa.call({path:ax,doc:aw,flag:c},av,ay)}})(p[1],A(w),au))}}}catch(ar){}}}function V(p,d,w){if(!p){return}if(p.addEventListener){p.addEventListener(d,w,false)}else{p.attachEvent&&p.attachEvent("on"+d,w)}ag.push([p,d,w])}function Y(w,d,ap,ao){if(!w){return}try{if(w.removeEventListener){w.removeEventListener(d,ap,false)}else{w.detachEvent&&w.detachEvent("on"+d,ap)}w[c]=ao}catch(p){}}function b(d){return d.which||d.button&&(d.button&1?1:(d.button&2?3:(d.button&4?2:0)))}function Q(d){while(d=ag.pop()){Y(d[0],d[1],d[2])}}function an(){return new Date-j}function ak(w,p,d){w=w.slice();w[1]=w[1][i](36);if(/[mlducwrkfh]/.test(w[0])){for(d=2;d<w.length;d++){if((""+w[d]).length>1){if(w[d]===s[d]){w[d]="^"}else{s[d]=w[d]}}}}p=w.join("*").replace(/\*0\b/g,"*").replace(/^(.)\*|\*+$/g,"$1")+"!";t+=p.length;if(t>z){ai({data:k(N.join("")+(P.group?"@@"+H.join(""):""))});t=h;N=[];H=[]}N.push(p)}function aa(aq,ao,au,ap,d,p,ar,av,w){ap=an();if(o){clearTimeout(o[0]);if(ap-o[2]>50){o[1]()}else{o=0}}var at=/^u/.test(typeof am[r])?0:am[r];if(at!=r){ak(["f",ap,A(at)]);r=at}if(aq==="j"){ak([aq,ap].concat(d));return}if(!ao){ak([aq,ap])}if(ap>D){J();return}if("i"==aq&&null!==o){return}w=ao.target||ao.srcElement;while(w&&w.nodeType!=1){w=w.parentNode}if(f[0]==w){au=f[1]}else{if(this.flag==c&&this.doc){au=this.path+"/"+A(w,this.doc)}else{au=A(w)}}f=[w,au];d=[aq,ap,au];if(/[mw]/.test(aq)){if(m[0]==aq&&ap-m[1]<al&&m[2]==d[2]){return}m=d.slice(0,3)}if(w&&!w[c]&&/select/i.test(w.tagName)){w[c]=1;V(w,"change",function(aw){aa("h",aw)})}if("o"==aq){o&&clearTimeout(o[0]);o=function(){o=null;d[2]=+(Math.min(ab.screenTop||0,ab.screenY||0)<-22932);ak(d)};o=[setTimeout(o,1000),o,ap]}else{if(/[se]/.test(aq)){p=e();d[3]=p[[0,2][+(aq=="e")]];d[2]=p[[1,3][+(aq=="e")]]}else{if("i"==aq){d[2]=""}else{if(w){if(/[mlducwr]/.test(aq)){ar=af(w,[ao.clientX,ao.clientY],P.grid);if(!ar){return}d[3]=ar[0];d[4]=ar[1];if(/[cdul]/.test(aq)){d[5]=b(ao)}if(aq=="m"){d[5]=g?U:b(ao)}if(aq=="w"){d[5]=+((ao.wheelDelta||ao.detail)<0)}}else{if("k"==aq){d[3]=/password/i.test(w.type)?1:ao.keyCode;d[4]=[+ao.altKey||0,+ao.ctrlKey||0,+ao.shiftKey||0,+ao.metaKey||0].join("")}else{if("h"==aq){d[3]=w.selectedIndex}}}}}}ak(d)}if(/[dcukio]/.test(aq)){X();K();W&&clearInterval(W);ac=0;W=setInterval(function(){X();K();if(ac++>3){W&&clearInterval(W);ac=0;W=0}},1000)}}function J(){if(!j){return}ai({cmd:"close",data:k(N.join("")+"z"+an()[i](36)+(P.group?"@@"+H.join(""):""))});t=h;N=[];H=[];j=0;Q()}function Z(w,d,ao){d=[];for(ao in w){if(typeof w[ao]!="undefined"){d.push(ao+"="+decodeURIComponent(w[ao]))}}return d.join("&")}function O(p,ao,w){if(!E||!E[q]){return}if(window._hunter_sid){return}if(j){return}j=new Date;C=e();x=L();I=(+j)[i](36)+(+Math.random().toFixed(8).substr(2))[i](36);window._hunter_sid=I;c="_e_"+I;R=0;t=h;N=[];H=[];s=[];m=[];f=[];aj=[];var d=/^u/.test(typeof am[r])?0:am[r];ak(["a",0,C[0],C[1],C[2],C[3],A(d)]);r=d;ai({cmd:"open",ref:k(k(am.referrer)),data:k(N.join(""))});for(p=0;ao=ad[p++];){if(/(focus.)|blur|focus/.test(ao[0])&&(!RegExp.$1^!am.all)){continue}V(ao[2]||am,ao[0],(function(ap){return function(aq){if(ap=="z"){J();w=an();while(an()-w<100){}return}if(g){if("d"==ap){U=b(aq)}if("u"==ap){U=0}}aa(ap,aq)}})(ao[1]))}K();X()}function A(ao){if(!ao||ao.nodeType!=1||/^(html|body)$/i.test(ao.tagName)){return ao&&/^html$/i.test(ao.tagName)?"~html":""}var ap=""+(ao.getAttribute&&ao.getAttribute("id"));if(ap&&ap.length<11&&!(/tangram/i.test(ap))&&am.getElementById(ap)==ao){return"."+ap.replace(/[!-\/\s~^]/g,function(aq){return"%"+(256+aq.charCodeAt())[i](16).substr(1)})}var w=1,p=ao[S],d="nodeName";while(p){w+=p[d]==ao[d];p=p[S]}return A(ao.parentNode)+"~"+(w<2?"":w)+ao[d].toLowerCase()}function F(d){if(!d||d.nodeType!=1||/^(html|body)$/i.test(d.tagName)){return}var p=d.getAttribute&&d.getAttribute("hgroup");if(p){return d}return F(d.parentNode)}function af(w,aq,p){var ao=w[q](),d=ah(w);p=p||1;function ap(ar){return String(+ar.toFixed(3)).replace(/^0\./g,".")}return[ap(~~((aq[0]-ao.left)/p)*p/d[0]),ap(~~((aq[1]-ao.top)/p)*p/d[1])]}function ah(d){var p=d[q]();return[~~(p.right-p.left),~~(p.bottom-p.top)]}function L(){var p=ah(E),d=ah(G);return[M(p[0],d[0],ab[n]||0,E.scrollWidth||0),M(p[1],d[1],ab[B]||0,E.scrollHeight||0)]}function e(){return[M(E.scrollLeft||0,G.scrollLeft||0,(l&&l.pageXOffset)||0),M(E.scrollTop||0,G.scrollTop||0,(l&&l.pageYOffset)||0),ab[n]||E.clientWidth||G.clientWidth||0,ab[B]||E.clientHeight||G.clientHeight||0]}function ai(aq){if(!aq){return}var ap=Hunter.logPath||P.logPath;for(var ao in v){aq[ao]=v[ao]}var p=am.createElement("img"),d,w=am.getElementsByTagName("head")[0]||bd;p.src=ap+"?"+Z({pid:P.pid,hid:P.hid,qid:ab.bdQid,gr:P.grid,sid:I,seq:R++,px:u,ps:x,vr:C,dv:3})+"&"+Z(aq);p.onerror=p.onload=p.onreadystatechange=function(){if(!d&&/^(loaded|complete)$/.test(this.readyState)){d=1;w.removeChild(p);p=0}};w.appendChild(p);C=e();x=L();s=[]}function T(d,p){if(!j){return}ts=an();d=["g",ts].concat(d);ak(d);if(p){ai({data:k(N.join(""))})}}if(typeof Hunter.param=="object"){for(var ae in Hunter.param){v[ae]=Hunter.param[ae]}}if(P.hid){O()}Hunter.start=function(){if(P.hid){O()}};Hunter.stop=function(){J();window._hunter_sid=null};Hunter.setParam=function(d,p){v[d]=p};Hunter.record=T}();